package cn.edu.swu.basic;

public class Main {

    public static void main(String[] args){
        //创建2个学生对象
        Student student1 = new Student("S2024001","James","男",19);
        Student student2 = new Student("S2024002","Luna","女",20);
        //创建2个课程对象
        Course course1 = new Course("C001", "Java编程", "王老师");
        Course course2 = new Course("C002", "数据结构", "李老师");
        //修改数据
        student1.setAge(21);
        course2.setTeacher("张老师");
        //打印学生和课程信息
        System.out.println("===== 学生信息 =====");
        student1.showInfo();
        student2.showInfo();

        System.out.println("");
        System.out.println("===== 课程信息 =====");
        course1.showInfo();
        course2.showInfo();

    }
}
